package dazuoye.基于事件的隐式调用;

import dazuoye.基于主程序子程序风格.KWIC1;

import java.util.ArrayList;
import java.util.List;

public class KwicListener implements Listener{
    @Override
    public void onEvent(Event e) {
        List<String> res=new ArrayList<>();
        List<String> resource = e.getResource();
        for(String s:resource){
            KWIC1.circularShifts(s,res,e.getN());
        }
        KWIC1.orderOutput(res);
    }
}
